package com.pan.enume;

import com.pan.dao.freight.FreightSelectDao;
import com.pan.dao.order1.OrderTable1SelectDao;
import com.pan.dao.order2.OrderTable2SelectDao;
import com.pan.entity.Freight;
import com.pan.entity.OrderTable1;
import com.pan.entity.OrderTable2;

public enum EntityEnum {

    ORDER_1("Order1", OrderTable1SelectDao.class, OrderTable1.class),
    ORDER_2("Order2", OrderTable2SelectDao.class, OrderTable2.class),
    FREIGHT("Freight", FreightSelectDao.class, Freight.class);

    String name;

    Class selectDaoClass;

    Class entityType;

    EntityEnum(String name,Class selectDaoClass,Class entityType){
        this.name = name;
        this.selectDaoClass = selectDaoClass;
        this.entityType = entityType;
    }

    public String getName() {
        return name;
    }

    public Class getSelectDaoClass() {
        return selectDaoClass;
    }

    public Class getEntityType() {
        return entityType;
    }
}
